import DefaultLayout from '@/layout/defaultLayout/index'
import SimpleLayout from '@/layout/simpleLayout/index'

const baseUrl = process.env.NODE_ENV === 'development' ? '' : '/paservice'
export default [
  // 影像列表
  {
    path: baseUrl + '/IMGLIST',
    component: DefaultLayout,
    hidden: true,
    children: [
      {
        path: '',
        name: 'ImgList',
        component: () => import('@/views/imgList/index.vue'),
        meta: { title: '影像列表' }
      },
      {
        path: 'matching',
        name: 'Matching',
        component: () => import('@/views/imgList/matching.vue'),
        meta: { title: '匹配', noCache: true }
      },
      {
        path: 'splitting',
        name: 'Splitting',
        component: () => import('@/views/imgList/splitting.vue'),
        meta: { title: '拆分', noCache: true }
      }
      ,
      {
        path: 'recyclebin',
        name: 'RecycleBin',
        component: () => import('@/views/recycleList/index.vue'),
        meta: { title: '回收站', noCache: true }
      }
    ]
  },
  // 影像校对
  {
    path: baseUrl + '/IMGPROOFREAD',
    component: DefaultLayout,
    hidden: true,
    children: [
      {
        path: '',
        name: 'ImgProofread',
        component: () => import('@/views/imgProofread/index.vue'),
        meta: { title: '影像校对' }
      }
    ]
  },
  // 参数设置
  {
    path: baseUrl + '/paramsSetting',
    name: 'paramsSetting',
    component: DefaultLayout,
    hidden: true,
    children: [
      {
        path: 'bacisParams',
        name: 'BacisParams',
        component: () => import('@/views/paramsSetting/index.vue'),
        meta: { title: '存档设置', noCache: true }
        // component: () => import('@/views/paramsSetting/bacisParams/index.vue'),
        // meta: { title: '基本参数', noCache: true }
      },
      {
        path: 'frontEndProcessorConfig',
        name: 'FrontEndProcessorConfig',
        component: () => import('@/views/paramsSetting/frontEndProcessorConfig/index.vue'),
        meta: { title: '前置机配置' }
      },
      {
        path: 'imgDeviceConfig',
        name: 'ImgDeviceConfig',
        component: () => import('@/views/paramsSetting/imgDeviceConfig/index.vue'),
        meta: { title: '影像设备配置', noCache: true }
      },
      {
        path: 'memoryDeviceConfig',
        name: 'MemoryDeviceConfig',
        component: () => import('@/views/paramsSetting/memoryDeviceConfig/index.vue'),
        meta: { title: '存储设备配置' }
      },
      {
        path: 'routingStrategyConfig',
        name: 'RoutingStrategyConfig',
        component: () => import('@/views/paramsSetting/routingStrategyConfig/index.vue'),
        meta: { title: '路由策略配置' }
      }, 
      {
        path: 'logViewer',
        name: 'LogViewer',
        component: () => import('@/views/paramsSetting/logViewer/index.vue'),
        meta: { title: '日志查看' }
      }
    ]
  },
  // 路由列表
  {
    path: baseUrl + '/ROUTELIST',
    name: 'RouteList',
    component: DefaultLayout,
    hidden: true,
    children: [
      {
        path: '',
        name: 'RouteList',
        component: () => import('@/views/routeList/index.vue'),
        meta: { title: '路由列表' }
      }
    ]
  },

  // 404
  {
    path: baseUrl + '/error',
    component: DefaultLayout,
    name: 'Error',
    redirect: '/error/404',
    hidden: true,
    children: [
      {
        path: '404',
        name: 'Page404',
        component: () => import('@/views/error-page/404'),
        meta: { title: '404', icon: 'el-icon-s-release' }
      }
    ]
  }
]
